/*
 * @Descripttion:
 * @Author: voanit
 * @Date: 2022-04-03 14:59:12
 * @LastEditors: voanit
 * @LastEditTime: 2022-04-03 14:59:12
 */
import request from "@/utils/request";

/**
 * @description: 获取下拉员工数据
 * @param {*}
 * @return {*}
 */
export function getEmployeeSimple() {
  return request({
    url: "/sys/user/simple",
  });
}
export function getEmployeeList(data) {
  return request({
    methods: 'get',
    url: '/sys/user',
    params: data
  })
}
export function addEmployee(data) {
  return request({
    method: 'post',
    url: '/sys/user',
    data
  })
}
export function importEmployee(data) {
  return request({
    url: '/sys/user/batch',
    method: 'post',
    data
  })
}
export function saveUserDetailById(data) {
  return request({
    url: `/sys/user/${data.id}`,
    method: "put", // 全量修改
    data,
  });
}